#ifndef _IMP_WANG_CLIENT_INTERFACE_H
#define _IMP_WANG_CLIENT_INTERFACE_H
#include <stdint.h>
struct ServerProvideInterface {
	//不确定类型，因为还没有出现过
	int (*registerService)();
	int (*createSessionServer)(const char* pkgName, const char* sessionName,
		int32_t uid, int32_t pid);
	int (*removeSessionServer)(const char* pkgName, const char* sessionName);

	int (*openSession)(const char* mySessionName,
		const char* peerSessionName, const char* peerDeviceId, const char* groupId, int flags);

	int (*closeChannel)(int32_t channelId);

	int (*sendMessage)(int32_t channelId, int32_t channelType, const void* data, uint32_t len, int32_t msgType);
	
	int32_t(*joinLNN)(void* addr, uint32_t addrTypeLen);
	
	int32_t(*leaveLNN)(const char* networkId);
	
	int32_t(*getAllOnlineNodeInfo)(void** info, uint32_t infoTypeLen, int32_t* infoNum);
	
	int32_t(*getLocalDeviceInfo)(void* info, uint32_t infoTypeLen);
	
	int32_t(*getNodeKeyInfo)(const char* networkId, int key, unsigned char* buf, uint32_t len);
};

#endif